<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 2018-06-14
 * Time: 18:01
 */

namespace app\api\model;


class LuckRecord extends BaseModel
{
    protected $table = 'we_luck_record';
    protected $hidden = [];

    // 自动写入时间戳
    //protected $autoWriteTimestamp = true;
    // 设置自动写入时间的格式
    protected $autoWriteTimestamp = 'datetime';

    // 关联关系-中奖记录表关联活动表-一对多
    public function actives(){
        return $this->hasMany('Active','id','activityId');
    }

}